﻿<?php
session_start();
if(isset($_SESSION["user"])){}else{
header("location:login.php");
exit;
}//
if(isset($_GET["delete"])){
	$page=$_SESSION["page"];
	include 'sql.php';
	$id=$_GET["delete"];
	$id=str_ireplace("'","isnot",$id);
	$id=str_ireplace("+","isnot",$id);
	$id=str_ireplace("%","isnot",$id);
	$id=str_ireplace("-","isnot",$id);
	if(stripos($id,"isnot")){
		echo "deleteID必须为数字型";////
		exit;
	}
	echo $id;
	mysql_query("delete from $tablewen where id='$id'");
	header("location: $page");
	exit;
}

?>